#include "NPlatform.h"
#include "NViewPort.h"

using namespace Engine;

RTTI_DEFINITIONS(NPlatform)

Engine::NPlatform* GPlatform = NULL;
bool GIsRendering = false;

NPlatform::NPlatform(void)
	:mFileSystem(NULL),
	 mViewPort(NULL)
{
}

NPlatform::~NPlatform(void)
{
}

float NPlatform::GetGameTime()
{
	return 0.0f;
}

float NPlatform::GetDeltaTime()
{
	return 0.0f;
}

Engine::NFileSystem* NPlatform::GetFileSystem()
{
	return mFileSystem;
}

Engine::NViewPort* NPlatform::GetViewPort()
{
	return mViewPort;
}

Engine::NPlatform* GetPlatform()
{
	extern Engine::NPlatform* GPlatform;
	return GPlatform;
}

Engine::NViewPort* GetViewPort()
{
	extern Engine::NPlatform* GPlatform;
	return GPlatform->GetViewPort();
}